package com.io.example.demoparent.simpleness;

public abstract class Pizza {

    /**
     * 披萨名称
     */
    protected String name;

    /**
     * 装备原材料 不同披萨不一样，做成抽象方法
     */
    public abstract void prepare();

    public void bake() {
        System.out.println("执行烘烤");
    }

    public void cut() {
        System.out.println("执行切割");
    }

    public void box() {
        System.out.println("执行打包");
    }

    public Pizza(String name) {
        this.name = name;
    }

    public Pizza() {
    }
}
